package com.serviceprovider.business.module.admin.provider.services.dao.impl;

//~--- non-JDK imports --------------------------------------------------------

import com.serviceprovider.business.module.admin.provider.model.ZipInfo;
import com.serviceprovider.business.module.admin.provider.services.dao.interfaces.IProviderService;
import com.serviceprovider.business.module.admin.user.model.OldUser;
import com.serviceprovider.business.module.admin.user.services.dao.interfaces.IUserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.support.JdbcDaoSupport;
import org.springframework.stereotype.Service;

//~--- JDK imports ------------------------------------------------------------

import java.util.List;

@Service("spService")
public class ProviderServiceDaoImpl extends JdbcDaoSupport implements IProviderService {
    @Autowired
    IUserService userService;

    @Autowired
    public ProviderServiceDaoImpl(@Qualifier("jdbcTemplate") JdbcTemplate jdbcTemplate) {
        setJdbcTemplate(jdbcTemplate);
    }

    @Override
    public List<OldUser> findAll(int roleId) {
        return null;
    }

    @Override
    public ZipInfo getZipInfoById(String zipCode) {
        return null;
    }

    @Override
    public void insertProvider(OldUser provider) {

        // userService.save(provider);
    }
}



